<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
	<head>
		<title>User List</title>
	</head>
	<body>
		<s:form theme="simple" id="list-form" action="delete">
			<h2>
				User List (
				<a href="${BASEURL}/admin/user/create.jspa">添加</a>)
			</h2>



			<div class="tablenav">
				<div class="tablenav-pages">
				</div>
				<div class="alignleft">
					<input type="button" value="删除" id="delete"
						class="button-secondary delete">
				</div>
				<br class="clear" />
			</div>
			<br class="clear" />
			<table class="widefat">
				<thead>
					<tr>
						<td width="2%">
							<input type="checkbox" id="all-box">
						</td>
						<td width="5%">
							Edit
						</td>
						<td width="5%">
							id
						</td>
						<td width="30%">
							User Name
						</td>
						<td width="25%">
							Password
						</td>
						<td width="30%">
							Email
						</td>
					</tr>
				</thead>

				<tbody>

					<s:iterator value="p.result">
						<tr>
							<td>
								<input type="checkbox" name="ids" value="${id}">
							</td>
							<td>
								<s:url id="edit" action="edit" includeParams="none">
									<s:param name="id" value="id" />
								</s:url>
								<s:a href="%{#edit}">Edit</s:a>
							</td>
							<td>
								${id}
							</td>
							<td>
								${username}
							</td>
							<td>
								${password}
							</td>
							<td>
								${email}
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</table>

			<tail:page name="p" />

		</s:form>
	</body>